import type { addAdministratorParams, AdministratorListFace, AdministratorListParams } from "../type/Administrator"
import http from "../utils/request"
// 请求列表数据
export const AdministratorList=(params:AdministratorListParams)=>http.get<AdministratorListFace>('administrator/list',params)
// 删除管理员
export const deleteAdministrator=(id:number)=>http.get<null>('administrator/delete',{id})
// 添加管理员
export const addAdministrator=(data:addAdministratorParams)=>http.post<null>('administrator/add',data)